<template>
  <!--侧边栏组件-->

  <div style="height: 100%">

    <el-menu :default-openeds="['1']" style="min-height: 100%; overflow-x: hidden"
             background-color="rgb(48,65,86)"
             text-color="#fff"
             :collapse-transition="true"
             :collapse="false"
             router
    >
      <div style="height: 60px; line-height: 60px; text-align: center">
        <img src="../assets/log1.jpg" style="height: 30px ;position: relative;top: 6px; margin-right: 10px">
        <b style="color: #eeeeee" v-show="logoTextShow">adastra后台管理系统</b>
      </div>

      <el-menu-item index="/">
        <template slot="title">
          <i class="el-icon-house"></i>
          <span slot="title">主页</span>
        </template>
      </el-menu-item>

      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-menu"></i>
          <span slot="title">管理</span>
        </template>
        <el-menu-item index="/user">
          <template slot="title">
            <i class="el-icon-s-custom"></i>
            <span slot="title">用户管理</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/userLoginLog">
          <template slot="title">
            <i class="el-icon-user"></i>
            <span slot="title">用户登录日志</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/message">
          <template slot="title">
            <i class="el-icon-chat-line-square"></i>
            <span slot="title">通知管理</span>
          </template>
        </el-menu-item>
                <el-menu-item index="/userFeedback">
                  <template slot="title">
                    <i class="el-icon-user-solid"></i>
                    <span slot="title">用户反馈</span>
                  </template>
                </el-menu-item>
      </el-submenu>

      <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-pie-chart"></i>
          <span slot="title">统计</span>
        </template>
        <el-menu-item index="/userDistribution">
          <template slot="title">
            <i class="el-icon-location-outline"></i>
            <span slot="title">用户分布</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/realTime">
          <template slot="title">
            <i class="el-icon-s-data"></i>
            <span slot="title">实时数据</span>
          </template>
        </el-menu-item>
        <el-menu-item index="/consumerTaste">
          <template slot="title">
            <i class="el-icon-notebook-2"></i>
            <span slot="title">用户爱好</span>
          </template>
        </el-menu-item>
      </el-submenu>

      <!--      <el-menu-item index="/">-->
      <!--        <template slot="title">-->
      <!--          <i class="el-icon-house"></i>-->
      <!--          <span slot="title">违规记录</span>-->
      <!--        </template>-->
      <!--      </el-menu-item>-->

    </el-menu>
  </div>


</template>

<script>
export default {
  name: "Aside",
  props: {
    isCollapse: Boolean,
    logoTextShow: Boolean
  }
}
</script>

<style scoped>

</style>